package com.pwc.conversionTool.IO;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.commons.io.FileUtils;

public final class Reader {

	/**
	 *	
	 * @param Path
	 * @return
	 */
	public static List<File> getAllFileFromStringPath(String Path) {
		List<File> returnFiles = new ArrayList<File>();
		File files = new File(Path);
		if (files.isDirectory()) {
			File[]	data = files.listFiles();
			returnFiles = Arrays.asList(data);
		}
		return returnFiles;
	}
	
	
	public static String getStringFromFile(String path) throws IOException
	{
		return FileUtils.readFileToString(new File(path));
	}

}
